 /*	
  *				
  *					ISNW ---- It is a war.It is not warcraft!
  *
  *
  *					Author:					zhoukeli(haxixi_keli)
  *					Filename:				FileSystem.h
  *					CreateTime:				2008/12/21
  *					ModifyTime:				2008/12/21
  *
  */

#ifndef __ISNW_FILE_SYSTEM_H__
#define __ISNW_FILE_SYSTEM_H__

#include "include/IFileSystem.h"

namespace ISNW
{
namespace io
{
	class FileSystem : public IFileSystem
	{
	public:
		//! constructor
		FileSystem();

	public:
		IReadFile* createreadfile(const c8* filename) const;

		core::string getapplicationpath() const;

		core::string getresourcepath() const;

		core::string getfilenamefrompath(const c8*) const;

		core::string getfileincurrdir(const c8*) const;

		core::string getfileinresourcedir(const c8*) const;

		bool doesfileexist(const c8*) const;

	protected:
		core::string curr_directory;

		core::string curr_resource_dir;
	};

} // end namespace io
} // end namespace ISNW
#endif